﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Example06_sharp_inheritance_and_contructors
{
    class Polygon
    {
        protected int width, height;
        public Polygon (int a)
        {
            width = a;
         
        }
        public void setvalues(int a, int b)
        {
            width = a;
            height = b;
        }
    }
    //class Rectangle:Polygon
    //{
    //    public Rectangle(int w, int h):base(w)
    //    {
    //        height = h;
    //    }
    //    public int area()
    //    {
    //        return (width * height);
    //    }
    //}
}
